package com.bootdo.market.service.impl;

import com.bootdo.market.dao.CommonDao;
import com.bootdo.market.dao.ProductAdvpositionDao;
import com.bootdo.market.domain.ProductAdvpositionDO;
import com.bootdo.market.service.ProductAdvpositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ProductAdvpositionServiceImpl implements ProductAdvpositionService {
    @Autowired
    private ProductAdvpositionDao productAdvpositionDao;
    @Autowired
    private CommonDao commonDao;

    @Override
    public ProductAdvpositionDO get(Integer id) {
        return productAdvpositionDao.get(id);
    }

    @Override
    public List<ProductAdvpositionDO> list(Map<String, Object> map) {
        return productAdvpositionDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return productAdvpositionDao.count(map);
    }

    @Override
    public int save(ProductAdvpositionDO productAdvposition) {
        return productAdvpositionDao.save(productAdvposition);
    }

    @Override
    public int update(ProductAdvpositionDO productAdvposition) {
        return productAdvpositionDao.update(productAdvposition);
    }

    @Override
    public int remove(Integer id) {
        return productAdvpositionDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return productAdvpositionDao.batchRemove(ids);
    }

    @Override
    public List<Map<String, Object>> listProductAdvpositionType() {
        return commonDao.listProductAdvpositionType();
    }
}
